/**
 * Created by yangfakuan on 2018/10/23.
 */
(function () {
    //绑定事件 | BIND
    var bind = new BindEvent();
    bind.handler("changePhoneBtn_0", "click", changePhoneBtn_0Event);
    bind.handler("bindEmailBtn","click", bindEmailBtnEvent);
    bind.handler("btnBound0","click", btnBound0Event);
    bind.handler("btnBound1","click", btnBound1Event);
    bind.handler("btnBound2","click", btnBound2Event);


    //更新手机号 | EVENT
    function changePhoneBtn_0Event () {

        var _interface = 'ajax.php';
        var type = 'POST';
        var data = {};

        function beforeSend() {
        }

        function success (data) {
        }

        function error () {

        }


        function complete () {

            var dialog = new DialogHandler();
            dialog.handler(dialog.DATA_TYPE.PHONE_SECURITY_RISK);

        }

        ajaxService(_interface, type, data,beforeSend, success, error, complete);

    }

    //邮件地址 | EVENT
    function bindEmailBtnEvent() {
        alert(1)
    }

    //绑定微信 | EVENT
    function btnBound0Event() {
        alert(2)
    }

    //绑定QQ | EVENT
    function btnBound1Event() {
        alert(3)
    }

    //绑定微博 | EVENT
    function btnBound2Event() {
        alert(4)
    }






})($,window);
